home *** CD-ROM | disk | FTP | other *** search
/ Total Network Tools 2002 / NextStepPublishing-TotalNetworkTools2002-Win95.iso / Archive / Offline Browsing / HTTrack.exe / data1.cab / Sources / src / htsopt.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-04-28  |  5.8 KB  |  143 lines

  1. /* ------------------------------------------------------------ */
  2. /*
  3. HTTrack Website Copier, Offline Browser for Windows and Unix
  4. Copyright (C) Xavier Roche and other contributors
  5.  
  6. This program is free software; you can redistribute it and/or
  7. modify it under the terms of the GNU General Public License
  8. as published by the Free Software Foundation; either version 2
  9. of the License, or any later version.
  10.  
  11. This program is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. GNU General Public License for more details.
  15.  
  16. You should have received a copy of the GNU General Public License
  17. along with this program; if not, write to the Free Software
  18. Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  19.  
  20.  
  21. Important notes:
  22.  
  23. - We hereby ask people using this source NOT to use it in purpose of grabbing
  24. emails addresses, or collecting any other private information on persons.
  25. This would disgrace our work, and spoil the many hours we spent on it.
  26.  
  27.  
  28. Please visit our Website: http://www.httrack.com
  29. */
  30.  
  31.  
  32. /* ------------------------------------------------------------ */
  33. /* File: HTTrack parameters block                               */
  34. /*       Called by httrack.h and some other files               */
  35. /* Author: Xavier Roche                                         */
  36. /* ------------------------------------------------------------ */
  37.  
  38.  
  39. #ifndef HTTRACK_DEFOPT
  40. #define HTTRACK_DEFOPT
  41.  
  42. #include <stdio.h>
  43. #include "htsbasenet.h"
  44. #include "htsbauth.h"
  45.  
  46. // structure proxy
  47. typedef struct {
  48.   int active;
  49.   char name[1024];
  50.   int port;
  51. } t_proxy; 
  52.  
  53. /* Structure utile pour copier en bloc les paramΦtres */
  54. typedef struct {
  55.   char**  filters;
  56.   int*    filptr;
  57.   int*    filter_max;
  58. } htsfilters;
  59.  
  60.  
  61.  
  62. // paramΦtres httrack (options)
  63. typedef struct {
  64.   int wizard;       // wizard aucun/grand/petit
  65.   int flush;        // fflush sur les fichiers log
  66.   int travel;       // type de dΘplacements (same domain etc)
  67.   int seeker;       // up & down
  68.   int depth;        // nombre de niveaux de rΘcursion
  69.   int extdepth;     // nombre de niveaux de rΘcursion α l'ΘxtΘrieur
  70.   int urlmode;      // liens relatifs etc   
  71.   int debug;        // mode dΘbug log
  72.   int getmode;      // sauver html, images..
  73.   FILE* log;        // fichier log
  74.   FILE* errlog;     // et erreur
  75.   int maxsite;      // taille max site
  76.   int maxfile_nonhtml;  // taille max non html
  77.   int maxfile_html;     // taille max html
  78.   int maxsoc;           // nbre sockets
  79.   int fragment;         // fragmentation d'un site
  80.   int nearlink;         // prendre les images/data proche d'une page mais α l'extΘrieur
  81.   int makeindex;        // faire un index
  82.   int kindex;           // et un index 'keyword'
  83.   int delete_old;       // effacer anciens fichiers
  84.   int timeout;          // nombre de secondes de timeout
  85.   int rateout;          // nombre d'octets minium pour le transfert
  86.   int maxtime;          // temps max en secondes
  87.   int maxrate;          // taux de transfert max
  88.   int maxconn;          // nombre max de connexions/s
  89.   int waittime;         // dΘmarrage programmΘ
  90.   int cache;            // gΘnΘration d'un cache
  91.   int aff_progress;     // barre de progression
  92.   int shell;            // gestion d'un shell par pipe stdin/stdout
  93.   t_proxy proxy;        // configuration du proxy
  94.   int savename_83;      // conversion 8-3 pour les noms de fichiers
  95.   int savename_type;    // type de noms: structure originale/html-images en un seul niveau
  96.   char savename_userdef[256];  // structure userdef (ex: %h%p/%n%q.%t)
  97.   int user_agent_send;  // user agent (ex: httrack/1.0 [sun])
  98.   char user_agent[128];
  99.   char path_log[1024];  // chemin pour cache et log
  100.   char path_html[1024]; // chemin pour miroir
  101.   int retry;            // nombre d'essais supplΘmentaires en cas d'Θchec
  102.   int makestat;         // mettre α jour un fichier log de statistiques de transfert
  103.   int maketrack;        // mettre α jour un fichier log de statistiques d'opΘrations
  104.   int parsejava;        // parsing des classes java pour rΘcupΘrer les class, gif & cie
  105.   int hostcontrol;      // abandon d'un host trop lent etc.
  106.   int errpage;          // gΘnΘrer une page d'erreur en cas de 404 etc.
  107.   int check_type;       // si type inconnu (cgi,asp,/) alors tester lien (et gΘrer moved Θventuellement)
  108.   int all_in_cache;     // tout mettre en cache!
  109.   int robots;           // traitement des robots
  110.   int external;         // pages externes->pages d'erreur
  111.   int mirror_first_page; // miroir des liens
  112.   char sys_com[2048];   // commande systΦme
  113.   int sys_com_exec;     // executer commande 
  114.   int accept_cookie;    // gestion des cookies
  115.   t_cookie* cookie;
  116.   int http10;           // forcer http 1.0
  117.   int sizehack;         // forcer rΘponse "mis α jour" si taille identique
  118.   int tolerant;         // accepter content-length incorrect
  119.   int parseall;         // essayer de tout parser (tags inconnus contenant des liens, par exemple)
  120.   int norecatch;        // ne pas reprendre les fichiers effacΘs localement par l'utilisateur
  121.   int verbosedisplay;   // animation textuelle
  122.   char footer[256];     // ligne d'infos
  123.   int maxcache;         // maximum en mΘmoire au niveau du cache (backing)
  124.   //int maxcache_anticipate; // maximum de liens α anticiper (majorant)
  125.   int ftp_proxy;        // proxy http pour ftp
  126.   char filelist[1024];  // fichier liste URL α inclure
  127.   htsfilters filters;   // contient les pointeurs pour les filtres
  128.   char lang_iso[64];    // en, fr ..
  129.   //
  130.   int maxlink;          // nombre max de liens
  131.   int maxfilter;        // nombre max de filtres
  132.   //
  133.   char* exec;           // adresse du nom de l'Θxecutable
  134.   //
  135.   int quiet;            // poser des questions autres que wizard?
  136.   int keyboard;         // vΘrifier stdin
  137.   //
  138.   int is_update;        // c'est une update (afficher "File updated...")
  139. } httrackp;
  140.  
  141. #endif
  142.  
  143.